FROM ubuntu:latest
#FROM alpine:latest
MAINTAINER heshi "heshi_fk@163.com"

Copy openjdk-1.8.0 /home/openjdk-1.8.0

Copy Shanghai /home/Shanghai

RUN mkdir -p /usr/local/openjdk-1.8.0 \
	&& cp -r /home/openjdk-1.8.0/ /usr/local/ \
	&& rm -rf /home/openjdk-1.8.0 \
#	&&  /etc/localtime \
	&& cp /home/Shanghai /etc/localtime \
 	&& echo Asia/Shanghai > /etc/timezone \
	&& rm -rf /home/Shanghai
	
ENV JAVA_HOME=/usr/local/openjdk-1.8.0
ENV PATH=$JAVA_HOME/bin:$PATH
